<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="org.jfree.chart.ChartFactory,org.jfree.chart.JFreeChart,org.jfree.chart.plot.PlotOrientation,org.jfree.chart.servlet.ServletUtilities,org.jfree.data.category.DefaultCategoryDataset"%>
<%
	DefaultCategoryDataset dataset = new DefaultCategoryDataset();
	dataset.addValue(700, "类型", "test");
	dataset.addValue(500, "类型", "牛肉");
	dataset.addValue(300, "类型", "鸡肉");
	dataset.addValue(100, "类型", "鸭肉");
	JFreeChart chart = ChartFactory.createBarChart3D("肉类销量统计图","类型","数据",dataset,PlotOrientation.VERTICAL,true,true,true);
	String filename = ServletUtilities.saveChartAsPNG(chart, 500, 300,null, session);
	String graphURL = request.getContextPath()+ "/DisplayChart?filename=" + filename;
%>

<img src="<%=graphURL%>" width=500 height=300 border=0 usemap="#<%=filename%>">